package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.WechatNoticeMapper;
import com.whq.entity.WechatNotice;
import com.whq.service.WechatNoticeService;

@Service(value = "tdWechatNoticeService")
public class WechatNoticeServiceImpl implements WechatNoticeService {

    @Autowired
    private WechatNoticeMapper<WechatNotice>tdWechatNoticeMapper;
    
    @Override
    public Integer insertSelective(WechatNotice tdWechatNotice) throws Exception {
           return this.tdWechatNoticeMapper.insertSelective(tdWechatNotice);
        }

    @Override
    public Integer insertBatch(List<WechatNotice> tdWechatNotice) throws Exception {
           return this.tdWechatNoticeMapper.insertBatch(tdWechatNotice) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdWechatNoticeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdWechatNoticeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(WechatNotice tdWechatNotice) {
           return this.tdWechatNoticeMapper.updateByPrimaryKeySelective(tdWechatNotice);
    }

    @Override
    public WechatNotice findById(Object id) {
           return (WechatNotice) this.tdWechatNoticeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WechatNotice> selectByCondition(WechatNotice tdWechatNotice) {
           return (List<WechatNotice>) this.tdWechatNoticeMapper.selectByCondition(tdWechatNotice);
    }

    @Override
    public Integer selectCountByCondition(WechatNotice tdWechatNotice) {
           return  this.tdWechatNoticeMapper.selectCountByCondition(tdWechatNotice);
    }

}
